import Opt from '@/components/dt/info/Opt.js'
import organizationOpt from '@/biz/option/organization.js'

class SearchOpt extends Opt {
  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      organizationOpt.create({
        key: 'orgIds'
      }),
      {
        title: '所属案场',
        placeholder: '请输入案场名称',
        key: 'buildingName',
        input: {
          clearable: true
        }
      }
      // houseOpt.create({
      //   to: (info) => {
      //     return {
      //       buildingName: info.housesName
      //     }
      //   }
      // })
    ]
  }
}

export default SearchOpt
